<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ftp extends CI_Controller {


	public function index()
	{
		$this->load->library('ftp');

		$config['hostname'] = '173.201.6.85';
		$config['username'] = 'hebaijun';
		$config['password'] = 'LLX0522hbj';
		$config['port'] = 21;
		$config['debug'] = TRUE;

		$this->ftp->connect($config);

		$list = $this->ftp->list_files('/');

		print_r($list);

		$this->ftp->close();
	}
}

/* End of file ftp.php */
/* Location: ./application/controllers/ftp.php */